public class Main
extends java.lang.Object
| Constructor and Description |
|---|
Main() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
error()
Used to process a fatal error.
|
static void |
main(java.lang.String[] args)
Command line argument processing occurs here.
|
private static Algorithm |
parseAlgorithm(java.lang.String algorithmCode,
java.util.HashMap<java.lang.String,java.lang.Boolean> config,
java.util.ArrayList<Condition> conditions,
java.util.Comparator<Edge> comparator)
Parses an algorithm code string for returning the appropriate Algorithm
object.
|
private static boolean[] |
parseBoolean(java.lang.String booleans)
Parses a boolean string for configuring the {}.
|
private static void |
writeGraphs(java.util.ArrayList<Graph> graphs,
java.lang.String output,
GraphWriter writer)
Writes Graph objects to memory.
|
public static void main(java.lang.String[] args)
java -jar SubgraphFinder.jar -v -out <booleans> -log <booleans> [ -f <FILE> | -m <MANIFEST> ] -input <TYPE> <OPTION> -output <TYPE> <OPTION> -algo <ALGO>
-f <FILE> : Supply a single file to be parsed.
-m <MANIFEST> : Supply a manifest listing several files to be parsed.
-level args - the String array containing the program's startup parameters.private static void writeGraphs(java.util.ArrayList<Graph> graphs, java.lang.String output, GraphWriter writer)
graphs - the ArrayList object containing the graphs to write.output - the String representing the folder in the memory to store
the graphs in.writer - the GraphWriter object to use for writing the
graphs.private static boolean[] parseBoolean(java.lang.String booleans)
booleans - the String containing the boolean pattern.private static Algorithm parseAlgorithm(java.lang.String algorithmCode, java.util.HashMap<java.lang.String,java.lang.Boolean> config, java.util.ArrayList<Condition> conditions, java.util.Comparator<Edge> comparator)
algorithmCode - the String containing the correct Algorithm code.Algorithm object instantiated from the code.private static void error()